@/* 侧边栏 */
<div class="layui-side">
    <div class="layui-side-scroll">

        @for(item in menus){
            <ul class="layui-nav layui-nav-tree arrow2" nav-id="${item.systemType}" lay-accordion="true" lay-filter="admin-side-nav" style="margin-top: 15px;">
                @for(menu in item.menus) {
                    @if(tool.isEmpty(menu.children)){
                        <li class="layui-nav-item">
                            @if(itemLP.first && menuLP.first){
                                <a id="firstPageAction" lay-href="${menu.url}" title='${menu.name}'><i class="layui-icon ${menu.icon}"></i>&emsp;<cite>${menu.name}</cite></a>
                            @}else{
                                <a lay-href="${menu.url}" title='${menu.name}'><i class="layui-icon ${menu.icon}"></i>&emsp;<cite>${menu.name}</cite></a>
                            @}
                        </li>
                    @}else{
                        <li class="layui-nav-item">
                            <a><i class="layui-icon ${menu.icon}"></i>&emsp;<cite>${menu.name}</cite></a>
                            <dl class="layui-nav-child">
                                @for(subMenu in menu.children){
                                    @if(tool.isEmpty(subMenu.children)){
                                        <dd>
                                        @if(itemLP.first && menuLP.first && subMenuLP.first){
                                            <a id="firstPageAction" lay-href="${subMenu.url}" title='${subMenu.name}'><i class="layui-icon ${subMenu.icon}"></i>&emsp;<cite>${subMenu.name}</cite></a>
                                        @}else{
                                            <a lay-href="${subMenu.url}" title='${subMenu.name}'><i class="layui-icon ${subMenu.icon}"></i>&emsp;${subMenu.name}</a>
                                        @}
                                        </dd>
                                    @}else{
                                        <dd>
                                            <a><i class="layui-icon ${subMenu.icon}"></i>&emsp;<cite>${subMenu.name}</cite></a>
                                            <dl class="layui-nav-child">
                                                @for(subSubMenu in subMenu.children){
                                                    @if(tool.isEmpty(subSubMenu.children)){
                                                        <dd>
                                                            @if(itemLP.first && menuLP.first && subMenuLP.first && subSubMenuLP.first){
                                                                <a id="firstPageAction" lay-href="${subSubMenu.url}" title='${subSubMenu.name}'><i class="layui-icon ${subSubMenu.icon}"></i>&emsp;<cite>${subSubMenu.name}</cite></a>
                                                            @}else{
                                                                <a lay-href="${subSubMenu.url}" title='${subSubMenu.name}'><i class="layui-icon ${subSubMenu.icon}"></i>&emsp;${subSubMenu.name}</a>
                                                            @}
                                                        </dd>
                                                    @}else{
                                                        <dd>
                                                            <a><i class="layui-icon ${subSubMenu.icon}"></i>${subSubMenu.name}</a>
                                                            <dl class="layui-nav-child">
                                                                @for(subSubSubMenu in subSubMenu.children){
                                                                    <dd>
                                                                        @if(itemLP.first && menuLP.first && subMenuLP.first && subSubMenuLP.first && subSubSubMenuLP.first){
                                                                            <a id="firstPageAction" lay-href="${subSubSubMenu.url}" title='${subSubSubMenu.name}'><i class="layui-icon ${subSubSubMenu.icon}"></i>&emsp;<cite>${subSubSubMenu.name}</cite></a>
                                                                        @}else{
                                                                            <a lay-href="${subSubSubMenu.url}" title='${subSubSubMenu.name}'><i class="layui-icon ${subSubSubMenu.icon}"></i>&emsp;${subSubSubMenu.name}</a>
                                                                        @}
                                                                    </dd>
                                                                @}
                                                            </dl>
                                                        </dd>
                                                    @}
                                                @}
                                            </dl>
                                        </dd>
                                    @}
                                @}
                            </dl>
                        </li>
                    @}
                @}
            </ul>
        @}
    </div>
</div>